//@ sourceURL=PhysicalRecordView.js
Ext.ns("PhysicalRecordView");
PhysicalRecordView = Ext.extend(Ext.Panel, {
    constructor : function(a) {
        Ext.applyIf(this, a);
        var all=this.initUIComponents();
        PhysicalRecordView.superclass.constructor.call(this, {
            id : "PhysicalRecordView",
            title : "体检记录",
            region : "center",
            layout : "border",
            border : false,
            iconCls : "menu-position",
            items : [all.yearGridPanel,all.yearGridSearchPanel]
        });
    },
    initUIComponents : function() {
        var GridComponents=new creategridview({
            topbar : {
                inputFormName : 'PhysicalRecordForm',
                topbarAdd:{
                    hidden:false
                },
                topbarDel:{
                    hidden:false
                }
            },
            search : {
                items : [ {
                    style : "margin:5px 5px 5px 5px;",
                    text : "体检医院"
                }, {
                    columnWidth : 0.2,
                    xtype : "textfield",
                    name : "Q_hospital_S_LK",
                    maxLength : 256
                } ]
            },
            grid : {
                title : "体检记录列表",
                rowActions:true,
                listUrl : __ctxPath + "/health/listPhysicalRecord.do?Q_healthFileId_L_EQ="+this.healthFileId,
                removeUrl : __ctxPath + "/health/deletePhysicalRecord.do",
                fields : [ "id", 'years', 'hospital','project', "conclusion","examinationDate"],
                columns : [ {
                    header : "id",
                    dataIndex : "id",
                    hidden : true
                }, {
                    header : "年份",
                    dataIndex : "years",
                    hidden : true,
                    sortable : true
                },{
                    header : "体检医院",
                    dataIndex : "hospital",
                    width : 70
                },{
                    header : "体检项目",
                    dataIndex : "project",
                    width : 80
                },{
                    header : "体检结论",
                    dataIndex : "conclusion",
                    width : 70
                },{
                    header : "体检时间",
                    dataIndex : "examinationDate",
                    width : 70
                }
            ]
            },
            formCfg : {
                healthFileId : this.healthFileId
            }
            
        });
        return GridComponents;
    }
});

